package com.road.entity.drop;

public class DropItemInfo implements Cloneable {
	/**
	 * id
	 */
	private int id;

	/**
	 * dropId
	 */
	private int dropId;

	/**
	 * itemId
	 */
	private int itemId;

	private int appearType;
	/**
	 * isBind
	 */
	private boolean isBind;

	/**
	 * random
	 */
	private int random;

	/**
	 * data
	 */
	private int data;

	/**
	 * isTips
	 */
	private boolean isTips;

	/**
	 * isLogs
	 */
	private boolean isLogs;

	private int validDate; // 有效期(分钟)

	/**
	 * isShow
	 */
	private boolean isShow;
	/**
	 * isNewItems
	 */
	private boolean isNewItems;
	
	/**
	 * 取得id
	 * 
	 * @return id
	 */
	public int getId() {
		return this.id;
	}

	/**
	 * 设置id
	 * 
	 * @param 新的id
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * 取得dropId
	 * 
	 * @return dropId
	 */
	public int getDropId() {
		return this.dropId;
	}

	/**
	 * 设置dropId
	 * 
	 * @param 新的dropId
	 */
	public void setDropId(int dropId) {
		this.dropId = dropId;
	}

	/**
	 * 取得itemId
	 * 
	 * @return itemId
	 */
	public int getItemId() {
		return this.itemId;
	}

	/**
	 * 设置itemId
	 * 
	 * @param 新的itemId
	 */
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	/**
	 * 取得isBind
	 * 
	 * @return isBind
	 */
	public boolean getIsBind() {
		return this.isBind;
	}

	/**
	 * 设置isBind
	 * 
	 * @param 新的isBind
	 */
	public void setIsBind(boolean isBind) {
		this.isBind = isBind;
	}

	/**
	 * 取得random
	 * 
	 * @return random
	 */
	public int getRandom() {
		return this.random;
	}

	/**
	 * 设置random
	 * 
	 * @param 新的random
	 */
	public void setRandom(int random) {
		this.random = random;
	}

	/**
	 * 取得data
	 * 
	 * @return data
	 */
	public int getData() {
		return this.data;
	}

	/**
	 * 设置data
	 * 
	 * @param 新的data
	 */
	public void setData(int data) {
		this.data = data;
	}

	/**
	 * 取得isTips
	 * 
	 * @return isTips
	 */
	public boolean getIsTips() {
		return this.isTips;
	}

	/**
	 * 设置isTips
	 * 
	 * @param 新的isTips
	 */
	public void setIsTips(boolean isTips) {
		this.isTips = isTips;
	}

	/**
	 * 取得isLogs
	 * 
	 * @return isLogs
	 */
	public boolean getIsLogs() {
		return this.isLogs;
	}

	/**
	 * 设置isLogs
	 * 
	 * @param 新的isLogs
	 */
	public void setIsLogs(boolean isLogs) {
		this.isLogs = isLogs;
	}

	public int getValidDate() {
		return validDate;
	}

	public void setValidDate(int validDate) {
		this.validDate = validDate;
	}

	/**
	 * 调试用的方法， 可以将所有字段的数据输出
	 * 
	 */
	public String toString() {
		StringBuffer sb = new StringBuffer();

		sb.append("id:		" + id + "\n");
		sb.append("dropId:		" + dropId + "\n");
		sb.append("itemId:		" + itemId + "\n");
		sb.append("isBind:		" + isBind + "\n");
		sb.append("random:		" + random + "\n");
		sb.append("data:		" + data + "\n");
		sb.append("isTips:		" + isTips + "\n");
		sb.append("isLogs:		" + isLogs + "\n");
		sb.append("validDate:	" + validDate + "\n");

		return sb.toString();
	}

	@Override
	public Object clone() {
		try {
			DropItemInfo dropItemInfo = (DropItemInfo) super.clone();
			return dropItemInfo;
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			return null;
		}
	}

	public void setAppearType(int appearType) {
		this.appearType = appearType;
	}

	public int getAppearType() {
		return appearType;
	}

	public boolean isShow() {
		return isShow;
	}

	public void setShow(boolean isShow) {
		this.isShow = isShow;
	}

	public boolean isNewItems() {
		return isNewItems;
	}

	public void setNewItems(boolean isNewItems) {
		this.isNewItems = isNewItems;
	}
}
